package com.me.brainlessbirds.actors.skills;

import com.badlogic.gdx.utils.Timer.Task;
import com.me.brainlessbirds.actors.GameObject;

public class Charge extends Skill implements SingleShot {

	public Charge(float _damages,float _cd) {
		super(_damages,_cd);
		
		Task task 			=	new Task() {
			@Override
			public void run() {
				System.out.println("Charge Attack !");
			}
		};
		
		setEffectTaskInit(task);
	}

	@Override
	public void inflictDamage(GameObject target, float dmg) {
		target.takeDamage(dmg);
	}

	@Override
	public void setEffectTaskInit(Task _t) {
		this.effectTaskInit = _t;
	}

}
